# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pydash
_pkgname=pydash
pkgver=8.0.5
pkgrel=1
pkgdesc='TPython utility libraries for doing stuff in a functional way based on the Lo-Dash Javascript library.'
arch=('any')
url='https://pypi.org/project/pydash/#files'
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('5d237076c014f9ad711ab38050de8a909f1d8ff9f86a200a5fced712e9474f1df4e4637fc80f87297be424d1e8929d418fa3e96bb5f50f26dbe32e79e19e8770')

build() {
  cd $_pkgname-$pkgver

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd $_pkgname-$pkgver

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

